-- GENERATED SPELL FOR [Smolderthorn Axe Thrower] --


function spell0_9267(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9267', 2310, 1)
end

function spell1_9267(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_9267', 598, 1)
end

function spell2_9267(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(16000,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9267', 641, 1)
end

function Sorts_9267(pUnit, Event)
local choix_sorts_9267 = math.random(0, 2)
if choix_sorts_9267 == 0 then
pUnit:RegisterEvent('spell0_9267', 1, 1)
end
if choix_sorts_9267 == 1 then
pUnit:RegisterEvent('spell1_9267', 1, 1)
end
if choix_sorts_9267 == 2 then
pUnit:RegisterEvent('spell2_9267', 1, 1)
end
end

function mob9267_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9267', math.random(1500, 3000), 1)
end

function mob9267_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9267_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9267_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9267, 1, 'mob9267_Action')
RegisterUnitEvent(9267, 2, 'mob9267_Leave')
RegisterUnitEvent(9267, 3, 'mob9267_Kill')
RegisterUnitEvent(9267, 4, 'mob9267_Die')
